from configparser import *
from tool import *

class INIT:
    def __init__(self):
        with open("./config.cfg","w")as f:
            conf = ConfigParser()
            conf.read("./config.cfg")
            conf.add_section("base")
            conf.add_section("write")
            conf.set("base", "write_language", "en")
            conf.set("base", "write_language_all", "en|jp")
            conf.set("base", "write_num", "0")
            conf.set("base","exe_language","chinese.cfg")
            conf.set("base", "all_language", "chinese.cfg|english.cfg")
            conf.set("base", "music_num", "")
            conf.set("base", "music_list", "")
            conf.set("base", "music_start_bool", "1")
            conf.set("write", "user_ans", "")
            conf.set("write", "aks", "")
            conf.set("write", "truth_ans", "")
            conf.write(f)

    def main(self):
        pass

if(__name__ == "__main__"):
    INIT().main()